package cn.tedu.aop.article.service.impl;

import cn.tedu.aop.article.service.ScheduledService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduledServiceImpl implements ScheduledService {
    @Scheduled(cron = "0/1 * * * * ?")
    @Override
    public void publish() {
        System.out.println("publish:"+System.currentTimeMillis());
    }
}
